<%@ page pageEncoding="UTF-8" contentType="text/html; charset=UTF-8" %> 
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-2">
</head>
<body>
<br>
<div class='kontakt'>
<div class='menu_kontaktowe'>
<%
HttpSession sesja = request.getSession(true);
if(sesja.getAttribute("lang").equals("en")){%>
&nbsp;&nbsp;&nbsp;Please carefully fill in the form of complaint in order as soon as possible
responses and identify the cause of the complaint.<br><br>
 <% if(request.getParameter("status")!=null && request.getParameter("status").equals("ok")){
	 out.println("<h3 class=info><img src='images/tak.png'> Thank you, Your complaint has been sent.");
	 out.println("We review it as soon as possible.<br>");
 }
 %><br>
	<form method='post' name='formularz' action='#' onSubmit='SprawdzReklamacje()'><fieldset class='obrys'>
	<label>Name and surname: *</label><br><input type='text' size='25' name='nick'/><br><br>
	<label>E-mail: *</label><br><input class='text' type='text' size='25' name='email'/><br><br>
	<label>Select reclamation type: *<br></label>
 	<select name="kategoria" size="1" onSelect="SprawdzWybor();">
	<option>Complaint for courier</option>
    <option>Shipment was not delivered</option>
	<option>Shipment was destroyed</option>
	<option>Other</option>
	</select>
	<br><br>
	<label>Topic:</label><br><input class='text' type='text' size='25' name='temat'/><br><br>
	<label>Message: *</label><br><textarea cols='50' rows='5' name='wiadomosc'></textarea><br><br>
	<label><input class=przycisk type='button' name='ok' value='Send complaint' onClick='SprawdzReklamacje()'></label>
	<label><input class=przycisk type='button' name='clean' value='Clean form' onClick='this.form.reset()'></label><br><br><label class='add'>* field required</label>
	<br></fieldset></form>
<%}else{%>
&nbsp;&nbsp;&nbsp;Prosimy o staranne wypełnienie formularza reklamacyjnego, w celu jak najszybszej 
odpowiedzi oraz znalezienia przyczyny reklamacji.<br><br>
 <% if(request.getParameter("status")!=null && request.getParameter("status").equals("ok")){
	 out.println("<h3 class=info><img src='images/tak.png'> Dziękujemy, Twoja reklamacja została zgłoszona.");
	 out.println("Rozpatrzymy ją najszybciej jak to będzie możliwe.<br>");
 }
 %><br>
	<form method='post' name='formularz' action='#' onSubmit='SprawdzReklamacje()'><fieldset class='obrys'>
	<label>Imi&#281; i nazwisko: *</label><br><input type='text' size='25' name='nick'/><br><br>
	<label>Email: *</label><br><input class='text' type='text' size='25' name='email'/><br><br>
	<label>Wybierz typ reklamacji *:<br></label>
 	<select name="kategoria" size="1" onSelect="SprawdzWybor();">
	<option>Skarga na kuriera</option>
    <option>Paczka nie zostala dostarczona</option>
	<option>Paczka uległa zniszczeniu</option>
	<option>Inne</option>
	</select>
	<br><br>
	<label>Temat wiadomości:</label><br><input class='text' type='text' size='25' name='temat'/><br><br>
	<label>Uwagi: *</label><br><textarea cols='50' rows='5' name='wiadomosc'></textarea><br><br>
	<label><input class=przycisk type='button' name='ok' value='Wy&#347;lij reklamację' onClick='SprawdzReklamacje()'></label>
	<label><input class=przycisk type='button' name='clean' value='Wyczy&#347;&#263; formularz' onClick='this.form.reset()'></label><br><br><label class='add'>* pole wymagane</label>
	<br></fieldset></form>
<%}%>
</div>
</div>
</body>
</html>